<?php 
/* @var $this Gold_Goldsys_Block_Form_Element_Renderer */
$module = $this->getModule();
$license = $module->getLicense();
$helper = Mage::helper('goldsys/license');
/* @var $helper Gold_Goldsys_Helper_License */
?>
<?php $_element = $this->getElement() ?>
<?php if (!$_element->getNoDisplay()): ?>
<tr>
    <?php if ($_element->getType()=='hidden'): ?>
    <td colspan="3" class="hidden" valign="middle"><?php echo trim($_element->getElementHtml()) ?></td>
    <?php else: ?>
    <td class="label">
        <table>
          <tr>
            <td>
              <?php echo trim($_element->getLabelHtml()) ?>
            </td>
          </tr>
        </table>
    </td>
    <td class="value">
        <table>
          <tr>
            <td>
              <?php echo trim($_element->getElementHtml()) ?>
            </td>
          </tr>
        </table>
    </td>
    <td<?php if ($_element->getNote()): ?> class="note"<?php endif ?> id="note_<?php echo $_element->getId()?>">
        <?php if ($_element->getNote()):?>
        <small><?php echo $_element->getNote()?></small>
        <?php elseif ($license): ?>
        <table>
          <tr>
            <td><?php echo $helper->getStatusLabel($license)?></td>
            <td>
              <?php foreach ($helper->getMainActions($license) as $action):?>
              <a href="<?php echo $this->getUrl($action['url']['path'],$action['url']['args'])?>">
                <?php echo $action['title']?>
              </a>
              <?php endforeach;?>
            </td>
          </tr>
        </table>
        <?php endif;?>
    </td>
    <?php endif; ?>
</tr>
<?php endif; ?>